package com.fun_ordering.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FoPurchasingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FoPurchasingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPurIdIsNull() {
            addCriterion("pur_id is null");
            return (Criteria) this;
        }

        public Criteria andPurIdIsNotNull() {
            addCriterion("pur_id is not null");
            return (Criteria) this;
        }

        public Criteria andPurIdEqualTo(Integer value) {
            addCriterion("pur_id =", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdNotEqualTo(Integer value) {
            addCriterion("pur_id <>", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdGreaterThan(Integer value) {
            addCriterion("pur_id >", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pur_id >=", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdLessThan(Integer value) {
            addCriterion("pur_id <", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdLessThanOrEqualTo(Integer value) {
            addCriterion("pur_id <=", value, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdIn(List<Integer> values) {
            addCriterion("pur_id in", values, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdNotIn(List<Integer> values) {
            addCriterion("pur_id not in", values, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdBetween(Integer value1, Integer value2) {
            addCriterion("pur_id between", value1, value2, "purId");
            return (Criteria) this;
        }

        public Criteria andPurIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pur_id not between", value1, value2, "purId");
            return (Criteria) this;
        }

        public Criteria andPurNameIsNull() {
            addCriterion("pur_name is null");
            return (Criteria) this;
        }

        public Criteria andPurNameIsNotNull() {
            addCriterion("pur_name is not null");
            return (Criteria) this;
        }

        public Criteria andPurNameEqualTo(String value) {
            addCriterion("pur_name =", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameNotEqualTo(String value) {
            addCriterion("pur_name <>", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameGreaterThan(String value) {
            addCriterion("pur_name >", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameGreaterThanOrEqualTo(String value) {
            addCriterion("pur_name >=", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameLessThan(String value) {
            addCriterion("pur_name <", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameLessThanOrEqualTo(String value) {
            addCriterion("pur_name <=", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameLike(String value) {
            addCriterion("pur_name like", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameNotLike(String value) {
            addCriterion("pur_name not like", value, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameIn(List<String> values) {
            addCriterion("pur_name in", values, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameNotIn(List<String> values) {
            addCriterion("pur_name not in", values, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameBetween(String value1, String value2) {
            addCriterion("pur_name between", value1, value2, "purName");
            return (Criteria) this;
        }

        public Criteria andPurNameNotBetween(String value1, String value2) {
            addCriterion("pur_name not between", value1, value2, "purName");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIsNull() {
            addCriterion("material_id is null");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIsNotNull() {
            addCriterion("material_id is not null");
            return (Criteria) this;
        }

        public Criteria andMaterialIdEqualTo(Integer value) {
            addCriterion("material_id =", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotEqualTo(Integer value) {
            addCriterion("material_id <>", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdGreaterThan(Integer value) {
            addCriterion("material_id >", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("material_id >=", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdLessThan(Integer value) {
            addCriterion("material_id <", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdLessThanOrEqualTo(Integer value) {
            addCriterion("material_id <=", value, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdIn(List<Integer> values) {
            addCriterion("material_id in", values, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotIn(List<Integer> values) {
            addCriterion("material_id not in", values, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdBetween(Integer value1, Integer value2) {
            addCriterion("material_id between", value1, value2, "materialId");
            return (Criteria) this;
        }

        public Criteria andMaterialIdNotBetween(Integer value1, Integer value2) {
            addCriterion("material_id not between", value1, value2, "materialId");
            return (Criteria) this;
        }

        public Criteria andPurNumbeIsNull() {
            addCriterion("pur_numbe is null");
            return (Criteria) this;
        }

        public Criteria andPurNumbeIsNotNull() {
            addCriterion("pur_numbe is not null");
            return (Criteria) this;
        }

        public Criteria andPurNumbeEqualTo(BigDecimal value) {
            addCriterion("pur_numbe =", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeNotEqualTo(BigDecimal value) {
            addCriterion("pur_numbe <>", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeGreaterThan(BigDecimal value) {
            addCriterion("pur_numbe >", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pur_numbe >=", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeLessThan(BigDecimal value) {
            addCriterion("pur_numbe <", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pur_numbe <=", value, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeIn(List<BigDecimal> values) {
            addCriterion("pur_numbe in", values, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeNotIn(List<BigDecimal> values) {
            addCriterion("pur_numbe not in", values, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pur_numbe between", value1, value2, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andPurNumbeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pur_numbe not between", value1, value2, "purNumbe");
            return (Criteria) this;
        }

        public Criteria andEnterTimeIsNull() {
            addCriterion("enter_time is null");
            return (Criteria) this;
        }

        public Criteria andEnterTimeIsNotNull() {
            addCriterion("enter_time is not null");
            return (Criteria) this;
        }

        public Criteria andEnterTimeEqualTo(Date value) {
            addCriterion("enter_time =", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeNotEqualTo(Date value) {
            addCriterion("enter_time <>", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeGreaterThan(Date value) {
            addCriterion("enter_time >", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("enter_time >=", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeLessThan(Date value) {
            addCriterion("enter_time <", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeLessThanOrEqualTo(Date value) {
            addCriterion("enter_time <=", value, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeIn(List<Date> values) {
            addCriterion("enter_time in", values, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeNotIn(List<Date> values) {
            addCriterion("enter_time not in", values, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeBetween(Date value1, Date value2) {
            addCriterion("enter_time between", value1, value2, "enterTime");
            return (Criteria) this;
        }

        public Criteria andEnterTimeNotBetween(Date value1, Date value2) {
            addCriterion("enter_time not between", value1, value2, "enterTime");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(Integer value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(Integer value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(Integer value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(Integer value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<Integer> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<Integer> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andPurPriceIsNull() {
            addCriterion("pur_price is null");
            return (Criteria) this;
        }

        public Criteria andPurPriceIsNotNull() {
            addCriterion("pur_price is not null");
            return (Criteria) this;
        }

        public Criteria andPurPriceEqualTo(BigDecimal value) {
            addCriterion("pur_price =", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceNotEqualTo(BigDecimal value) {
            addCriterion("pur_price <>", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceGreaterThan(BigDecimal value) {
            addCriterion("pur_price >", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pur_price >=", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceLessThan(BigDecimal value) {
            addCriterion("pur_price <", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pur_price <=", value, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceIn(List<BigDecimal> values) {
            addCriterion("pur_price in", values, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceNotIn(List<BigDecimal> values) {
            addCriterion("pur_price not in", values, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pur_price between", value1, value2, "purPrice");
            return (Criteria) this;
        }

        public Criteria andPurPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pur_price not between", value1, value2, "purPrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}